<?php
/**
 * 行业宝模块微站定义
 *
 * @author wangbosichuang
 * @url 
 */
defined('IN_IA') or exit('Access Denied');

class Hyb_jianzhiModuleSite extends WeModuleSite {
	/*
		基本设置
	*/
	public function doWebBase () {
		global $_GPC, $_W;
		load()->func("tpl");
		$op = !empty($_GPC['op']) ? $_GPC['op'] : 'display';
		$uniacid = $_W['uniacid'];
		if($op == "display")
		{
			$item = pdo_fetch("SELECT * FROM ".tablename("hyb_jianzhi_base")." where uniacid=:uniacid",array(":uniacid"=>$uniacid));
			if (checksubmit('submit')) {
					$data = array("uniacid"=>$uniacid,"name"=>$_GPC['name'],"cityname"=>$_GPC['cityname'],"zd_type"=>$_GPC['zd_type'],"zd_money"=>$_GPC['zd_money'],"zd_num"=>$_GPC['zd_num'],"dp_type"=>$_GPC['dp_type'],"dp_money"=>$_GPC['dp_money'],"p_type"=>$_GPC['p_type']);
					if (empty($item['id'])) {
						pdo_insert("hyb_jianzhi_base",$data);
						message("添加成功!",$this->createWebUrl("base",array("op"=>"display")),"success");
					}
					else
					{
						pdo_update("hyb_jianzhi_base",$data,array("id"=>$item['id']));
						message("修改成功!",$this->createWebUrl("base",array("op"=>"display")),"success");
					}
				}
			}		
		include $this -> template('base');
	}

	//幻灯片设置
	public function doWebHuandengpian()
	{
		global $_W,$_GPC;
		$uniacid = $_W['uniacid'];
		$op = !empty($_GPC['op'])?$_GPC['op']:"display";
		if ($op == "display") {
			$products = pdo_fetchall("SELECT * FROM ".tablename("hyb_jianzhi_huandengpian")." where uniacid=:uniacid",array(":uniacid"=>$uniacid));
		}
		if ($op == "post") {
			$id = $_GPC['id'];
			$items = pdo_fetch("SELECT * FROM ".tablename("hyb_jianzhi_huandengpian")." where uniacid=:uniacid and id=:id",array(":uniacid"=>$uniacid,":id"=>$id));
			if (checksubmit("submit")) {
				$data = array("uniacid"=>$uniacid,"thumb"=>$_GPC['thumb'],"AppId"=>$_GPC['AppId'],"AppSecret"=>$_GPC['AppSecret'],"lianjie"=>$_GPC['lianjie']);
				if (empty($id)) {
					pdo_insert("hyb_jianzhi_huandengpian",$data);
					message("添加成功!",$this->createWebUrl("huandengpian",array("op"=>"display")),"success");
				}else{
					pdo_update("hyb_jianzhi_huandengpian",$data,array("id"=>$id));
					message("修改成功!",$this->createWebUrl("huandengpian",array("op"=>"display")),"success");
				}
			}
		}
		if ($op == "delete") {
			$id = $_GPC['id'];
			pdo_delete("hyb_jianzhi_huandengpian",array("id"=>$id));
			message("删除成功!",$this->createWebUrl("huandengpian",array("op"=>"display")),"success");
		}
		include $this->template("huandengpian");
	}

	//导航设置
	public function doWebDaohang()
	{
		global $_W,$_GPC;
		$uniacid = $_W['uniacid'];
		$op = !empty($_GPC['op'])?$_GPC['op']:"display";
		if ($op == "display") {
			$products = pdo_fetchall("SELECT * FROM ".tablename("hyb_jianzhi_daohang")." where uniacid=:uniacid",array(":uniacid"=>$uniacid));
		}
		if ($op == "post") {
			$id = $_GPC['id'];
			$items = pdo_fetch("SELECT * FROM ".tablename("hyb_jianzhi_daohang")." where uniacid=:uniacid and id=:id",array(":uniacid"=>$uniacid,":id"=>$id));
			if (checksubmit("submit")) {
				$data = array("uniacid"=>$uniacid,"title"=>$_GPC['title'],"thumb"=>$_GPC['thumb'],"thumb2"=>$_GPC['thumb2'],"lianjie"=>$_GPC['lianjie']);
				if (empty($id)) {
					pdo_insert("hyb_jianzhi_daohang",$data);
					message("添加成功!",$this->createWebUrl("daohang",array("op"=>"display")),"success");
				}else{
					pdo_update("hyb_jianzhi_daohang",$data,array("id"=>$id));
					message("修改成功!",$this->createWebUrl("daohang",array("op"=>"display")),"success");
				}
			}
		}
		if ($op == "delete") {
			$id = $_GPC['id'];
			pdo_delete("hyb_jianzhi_daohang",array("id"=>$id));
			message("删除成功!",$this->createWebUrl("daohang",array("op"=>"display")),"success");
		}
		include $this->template("daohang");
	}

	//骗审信息设置
	public function doWebPian()
	{
		global $_W,$_GPC;
		$uniacid = $_W['uniacid'];
		load()->func("tpl");
		$op = !empty($_GPC['op'])?$_GPC['op']:"display";
		if ($op == "display") {
			$items = pdo_fetchall("SELECT * FROM ".tablename("hyb_jianzhi_pian")." where uniacid=:uniacid",array(":uniacid"=>$uniacid));
		}
		if ($op == "post") {
			$id = $_GPC['id'];
			$item = pdo_fetch("SELECT * FROM ".tablename("hyb_jianzhi_pian")." where uniacid=:uniacid and id=:id",array(":uniacid"=>$uniacid,":id"=>$id));
			if (checksubmit("submit")) {
				$data = array("uniacid"=>$uniacid,"title"=>$_GPC['title'],"content"=>$_GPC['content'],"thumb"=>$_GPC['thumb']);

				if (empty($id)) {
					pdo_insert("hyb_jianzhi_pian",$data);
					message("添加成功!",$this->createWebUrl("pian",array("op"=>"display")),"success");
				}
				else
				{
					pdo_update("hyb_jianzhi_pian",$data,array("id"=>$id));
					message("修改成功!",$this->createWebUrl("pian",array("op"=>"display")),"success");
				}
			}
		}
		if ($op == "delete") {
			$id = $_GPC['id'];
			pdo_delete("hyb_jianzhi_pian",array("id"=>$id));
			message("删除成功!",$this->createWebUrl("pian",array("op"=>"display")),"success");
		}
		include $this->template("pian");
	}

		//骗审导航设置
	public function doWebPian_daohang()
	{
		global $_GPC,$_W;
		$uniacid = $_W['uniacid'];
		$op = !empty($_GPC['op'])?$_GPC['op']:"display";
		if ($op == "display") {
			$items = pdo_fetchall("SELECT * FROM ".tablename("hyb_jianzhi_pian_daohang")." where uniacid=:uniacid",array(":uniacid"=>$uniacid));
		} 
		if ($op == "post") {
			$id = $_GPC['id'];
			$item = pdo_fetch("SELECT * FROM".tablename("hyb_jianzhi_pian_daohang")." where uniacid=:uniacid and id=:id",array(":uniacid"=>$uniacid,":id"=>$id));
			if (checksubmit("submit")) {
				$data = array("uniacid"=>$uniacid,"title"=>$_GPC['title'],"thumb"=>$_GPC['thumb'],"appid"=>$_GPC['appid'],"lianjie"=>$_GPC['lianjie']);
				if (empty($id)) {
					pdo_insert("hyb_jianzhi_pian_daohang",$data);
					message("添加成功!",$this->createWebUrl("pian_daohang",array("op"=>"display")),"success");
				}else{
					pdo_update("hyb_jianzhi_pian_daohang",$data,array("id"=>$id));
					message("修改成功!",$this->createWeburl("pian_daohang",array("op"=>"display")),"success");
				}
			}
		}
		if ($op == "delete") {
			$id = $_GPC['id'];
			pdo_delete("hyb_jianzhi_pian_daohang",array("id"=>$id));
			message("删除成功!",$this->createWeburl("pian_daohang",array("op"=>"display")),"success");
		}
		
		include $this->template("pian_daohang");
	}

	//兼职信息中心
	public function doWebJianzhi_info()
	{
		global $_GPC,$_W;
		$uniacid = $_W['uniacid'];
		$op = !empty($_GPC['op'])?$_GPC['op']:"display";
		if ($op == "display") {
			$pindex = max(1, intval($_GPC['page']));
			$psize = 10;
			$products = pdo_fetchall("SELECT * FROM ".tablename("hyb_jianzhi_jianzhi")." as j left join ".tablename("hyb_jianzhi_shangjia")." as s on j.f_openid=s.s_openid where j.uniacid=:uniacid order by f_time desc  limit ". (($pindex - 1) * $psize) . ',' . $psize,array(":uniacid"=>$uniacid));
			$count = pdo_fetchcolumn("SELECT count(*) FROM ".tablename("hyb_jianzhi_jianzhi")." where uniacid=:uniacid ",array(":uniacid"=>$uniacid));
			$pager = pagination($count, $pindex, $psize);
		}
		if ($op == "post") {
			$f_id = $_GPC['f_id'];
			$items = pdo_fetch("SELECT * FROM ".tablename("hyb_jianzhi_jianzhi")." as j left join ".tablename("hyb_jianzhi_shangjia")." as s on j.f_openid=s.s_openid where j.uniacid=:uniacid and j.f_id=:f_id",array(":uniacid"=>$uniacid,":f_id"=>$f_id));
		}
		if ($op == "posts") {
			$f_id = $_GPC['f_id'];
			$items = pdo_fetch("SELECT * FROM ".tablename("hyb_jianzhi_jianzhi")." as j left join ".tablename("hyb_jianzhi_shangjia")." as s on j.f_openid=s.s_openid where j.uniacid=:uniacid and j.f_id=:f_id",array(":uniacid"=>$uniacid,":f_id"=>$f_id));
			//查询兼职类型
			$leixing = pdo_fetchall("SELECT * FROM ".tablename("hyb_jianzhi_style")." where uniacid=:uniacid order by ids desc ",array(":uniacid"=>$uniacid));
			if (checksubmit("submit")) {
				$data = array("uniacid"=>$uniacid,"f_name"=>$_GPC['f_name'],"f_daiyu"=>$_GPC['f_daiyu'],"f_leixing"=>$_GPC['f_leixing'],"f_renshu"=>$_GPC['f_renshu'],"f_sex"=>$_GPC['f_sex'],"f_fuze"=>$_GPC['f_fuze'],"f_fuzetel"=>$_GPC['f_fuzetel'],"f_content"=>$_GPC['f_content'],"f_gztime1"=>$_GPC['f_gztime1'],"f_gztime2"=>$_GPC['f_gztime2'],"f_gzdate1"=>$_GPC['f_gzdate1'],"f_gzdate2"=>$_GPC['f_gzdate2'],"f_address"=>$_GPC['f_address'],"f_lat"=>$_GPC['f_lat'],"f_lon"=>$_GPC['f_lon'],"f_gongsi"=>$_GPC['f_gongsi'],"f_zhiding"=>"是","f_typs"=>"审核通过","f_time"=>date("Y-m-d H:i:s",time()));
				//var_dump($data);
				if (empty($f_id)) {
					pdo_insert("hyb_jianzhi_jianzhi",$data);
					message("添加成功!",$this->createWebUrl("jianzhi_info",array("op"=>"display")),"success");
				}else{
					pdo_update("hyb_jianzhi_jianzhi",$data,array("f_id"=>$f_id));
					message("修改成功!",$this->createWebUrl("jianzhi_info",array("op"=>"display")),"success");
				}
			}
		}
		if ($op == "save") {
			$f_id = $_GPC['f_id'];
			$data = array("f_typs"=>"审核通过");
			$res = pdo_update("hyb_jianzhi_jianzhi",$data,array("f_id"=>$f_id));
			message("审核通过!",$this->createWebUrl("jianzhi_info",array("op"=>"display")),"success");
		}
		if ($op == "saves") {
			$f_id = $_GPC['f_id'];
			//查询信息
			$list = pdo_fetch("SELECT * FROM ".tablename("hyb_jianzhi_jianzhi")." where uniacid=:uniacid and f_id=:f_id",array(":uniacid"=>$uniacid,":f_id"=>$f_id));
			if ($list['f_zhiding']=="是") {
				$data = array("f_zhiding"=>"否");
				$res = pdo_update("hyb_jianzhi_jianzhi",$data,array("f_id"=>$f_id));
				message("取消置顶成功!",$this->createWebUrl("jianzhi_info",array("op"=>"display")),"success");	
			}else if ($list['f_zhiding']=="否") {
				$data = array("f_zhiding"=>"是");
				$res = pdo_update("hyb_jianzhi_jianzhi",$data,array("f_id"=>$f_id));
				message("置顶成功!",$this->createWebUrl("jianzhi_info",array("op"=>"display")),"success");	
			}
			
		}
		if ($op == "delete") {
			$f_id = $_GPC['f_id'];
			pdo_delete("hyb_jianzhi_jianzhi",array("f_id"=>$f_id));
			message("删除成功!",$this->createWebUrl("jianzhi_info",array("op"=>"display")),"success");
		}

		include $this->template("jianzhi_info");
	}

	//兼职分类设置
	public function doWebJianzhi_style()
	{
		global $_GPC,$_W;
		$uniacid = $_W['uniacid'];
		$op = !empty($_GPC['op'])?$_GPC['op']:"display";
		if($op == "display"){
			$products = pdo_fetchall("SELECT * FROM ".tablename("hyb_jianzhi_style")." where uniacid=:uniacid order by ids desc ",array(":uniacid"=>$uniacid));
		}
		if ($op == "post") {
			$id = $_GPC['id'];
			$items = pdo_fetch("SELECT * FROM ".tablename("hyb_jianzhi_style")." where uniacid=:uniacid and id=:id",array(":uniacid"=>$uniacid,":id"=>$id));
			if (checksubmit("submit")) {
				$data = array("uniacid"=>$uniacid,"title"=>$_GPC['title'],"ids"=>$_GPC['ids'],"thumb"=>$_GPC['thumb']);
				if (empty($id)) {
					pdo_insert("hyb_jianzhi_style",$data);
					message("添加成功!",$this->createWebUrl("jianzhi_style",array("op"=>"display")),"success");
				}else{
					pdo_update("hyb_jianzhi_style",$data,array("id"=>$id));
					message("修改成功!",$this->createWebUrl("jianzhi_style",array("op"=>"display")),"success");
				}
			}
		}
		if ($op == "delete") {
			$id = $_GPC['id'];
			pdo_delete("hyb_jianzhi_style",array("id"=>$id));
			message("删除成功!",$this->createWebUrl("jianzhi_style",array("op"=>"display")),"success");
		}
		include $this->template("jianzhi_style");
	}


	//用户中心
	public function doWebUser()
	{
		global $_W,$_GPC;
		$uniacid = $_W['uniacid'];
		$op = !empty($_GPC['op'])?$_GPC['op']:"display";
		if ($op == "display") {
			$pindex = max(1, intval($_GPC['page']));
			$psize = 10;
			$products = pdo_fetchall("SELECT * FROM ".tablename("hyb_jianzhi_userinfo")." where uniacid=:uniacid limit ". (($pindex - 1) * $psize) . ',' . $psize,array(":uniacid"=>$uniacid));
			$count = pdo_fetchcolumn("SELECT count(*) FROM ".tablename("hyb_jianzhi_userinfo")." where uniacid=:uniacid ",array(":uniacid"=>$uniacid));
			$pager = pagination($count, $pindex, $psize);
		}
		if($op == "post"){
			$u_id = $_GPC['u_id'];
			$item = pdo_fetch("SELECT * FROM ".tablename("hyb_jianzhi_userinfo")." where uniacid=:uniacid and u_id=:u_id",array(":uniacid"=>$uniacid,":u_id"=>$u_id));
		}
		if ($op == "save") {
			$u_id = $_GPC['u_id'];
			$data = array("u_typs"=>"审核通过");
			$res = pdo_update("hyb_jianzhi_userinfo",$data,array("u_id"=>$u_id));
			message("审核通过!",$this->createWebUrl("user",array("op"=>"display")),"success");
		}
		if ($op == "delete") {
			$u_id = $_GPC['u_id'];
			$res = pdo_delete("hyb_jianzhi_userinfo",array("u_id"=>$u_id));
			message("删除成功!",$this->createWebUrl("user",array("op"=>"display")),"success");
		}
		include $this->template("user");
	}

	//商户中心
	public function doWebShop()
	{
		global $_GPC,$_W;
		$uniacid = $_W['uniacid'];
		$op = !empty($_GPC['op'])?$_GPC['op']:"display";
		if ($op == "display") {
			$products = pdo_fetchall("SELECT * FROM ".tablename("hyb_jianzhi_shangjia")." where uniacid=:uniacid",array(":uniacid"=>$uniacid));
			foreach ($products as &$value) {
				$value['time'] = date("Y-m-d H:i:s",time());
			}
		}
		if ($op=="post") {
			$s_id = $_GPC['s_id'];
			$item = pdo_fetch("SELECT * FROM ".tablename("hyb_jianzhi_shangjia")." where uniacid=:uniacid and s_id=:s_id",array(":uniacid"=>$uniacid,":s_id"=>$s_id));
			$item['s_imgpath'] = unserialize($item['s_imgpath']);
		}
		if ($op == "save") {
			$s_id = $_GPC['s_id'];
			$data = array("s_typs"=>"审核通过");
			pdo_update("hyb_jianzhi_shangjia",$data,array("s_id"=>$s_id));
			message("审核通过!",$this->createWebUrl("shop",array("op"=>"display")),"success");
		}
		if ($op == "savde") {
			$s_id = $_GPC['s_id'];
			$data = array("s_ruzhuendtime"=>"");
			pdo_update("hyb_jianzhi_shangjia",$data,array("s_id"=>$s_id));
			message("修改成功!",$this->createWebUrl("shop",array("op"=>"display")),"success");
		}
		if ($op == "delete") {
			$s_id = $_GPC['s_id'];
			pdo_delete("hyb_jianzhi_shangjia",array("s_id"=>$s_id));
			message("删除成功!",$this->createWebUrl("shop",array("op"=>"display")),"success");
		}
		include $this->template("shop");
	}

	//应用设置
	public function doWebKey()
	{
		global $_GPC,$_W;
		$uniacid = $_W['uniacid'];
		$op = !empty($_GPC['op'])?$_GPC['op']:"display";
		if ($op == "display") {
			$item = pdo_fetch("SELECT * FROM ".tablename("hyb_jianzhi_key")." where uniacid=:uniacid ",array(":uniacid"=>$uniacid));
			if (checksubmit("submit")) {
				$data = array("uniacid"=>$uniacid,"appid"=>$_GPC['appid'],"appsecret"=>$_GPC['appsecret'],"mch_id"=>$_GPC['mch_id'],"appkey"=>$_GPC['appkey'],"accessKeyId"=>$_GPC['accessKeyId'],"accessKeySecret"=>$_GPC['accessKeySecret'],"signName"=>$_GPC['signName'],"TemplateCode"=>$_GPC['TemplateCode']);
				if (empty($item)) {
					pdo_insert("hyb_jianzhi_key",$data);
					message("添加成功!",$this->createWebUrl("key",array("op"=>"display")),"success");
				}else{
					pdo_update("hyb_jianzhi_key",$data,array("id"=>$item['id']));
					message("修改成功!",$this->createWebUrl("key",array("op"=>"display")),"success");
				}
			}
		}
		include $this->template("key");
	}

	//城市设置
	public function doWebChengshi()
	{
		global $_GPC,$_W;
		$uniacid = $_W['uniacid'];
		$op = !empty($_GPC['op'])?$_GPC['op']:"display";
		if ($op == "display") {
			$pindex = max(1, intval($_GPC['page']));
			$psize = 10;
			
			$pager = pagination($count, $pindex, $psize);
			$items = pdo_fetchall("SELECT * FROM ".tablename("hyb_jianzhi_chengshi")." where uniacid=:uniacid limit ". (($pindex - 1) * $psize) . ',' . $psize,array(":uniacid"=>$uniacid));
			$count = pdo_fetchcolumn("SELECT count(*) FROM ".tablename("hyb_jianzhi_chengshi")." where uniacid=:uniacid ",array(":uniacid"=>$uniacid));
		}
		if($op == "post"){
			$id = $_GPC['id'];
			$item = pdo_fetch("SELECT * FROM ".tablename("hyb_jianzhi_chengshi")." where uniacid=:uniacid and id=:id",array(":uniacid"=>$uniacid,":id"=>$id));
			if (checksubmit("submit")) {
				$data =array("uniacid"=>$uniacid,"title"=>$_GPC['title']);
				if (empty($id)) {
					pdo_insert("hyb_jianzhi_chengshi",$data);
					message("添加成功!",$this->createWeburl("chengshi",array("op"=>"display")),"success");
				}else{
					pdo_update("hyb_jianzhi_chengshi",$data,array("id"=>$id));
					message("修改成功!",$this->createWeburl("chengshi",array("op"=>"display")),"success");
				}
			}
		}
		if ($op == "delete") {
			$id = $_GPC['id'];
			pdo_delete("hyb_jianzhi_chengshi",array("id"=>$id));
			message("删除成功!",$this->createWeburl("chengshi",array("op"=>"display")),"success");
		}
		include $this->template("chengshi");
	}

//数据导入
	public function ExcelArr(){
		return array('shi','xian');
	}
	public function doWebShuju()
	{
		global $_GPC,$_W;
		$uniacid = $_W['uniacid'];
		load()->func("file");
		//查询数据
		$diqu = pdo_fetchall("SELECT * FROM ".tablename("hyb_jianzhi_diqu")." where uniacid=:uniacid",array(":uniacid"=>$uniacid));
		if (!empty($diqu)) {
			$title = "已有数据";
		}else{
			$title = "暂无数据";
		}
		if (checksubmit("submit")) {
			$force = $_GPC['force'];
		$file = $_FILES['file'];
		$type = @end( explode('.', $file['name']));
		$type = strtolower($type);
		// if( !in_array($type, array('xls','xlsx')) ){
		//  	message('文件类型错误！',  '', 'error');
		// }
		//开始导入
		set_time_limit(0);
		require_once(IA_ROOT . '/framework/library/phpexcel/PHPExcel.php');
		require_once(IA_ROOT . '/framework/library/phpexcel/PHPExcel/IOFactory.php');
		if( $type == 'xls' ){
			$inputFileType = 'Excel5';    //这个是读 xls的
		}else{
			$inputFileType = 'Excel2007';//这个是计xlsx的
		}		
				
	    $objReader = PHPExcel_IOFactory::createReader($inputFileType);
		$objPHPExcel = $objReader->load($file['tmp_name']);
		$objWorksheet = $objPHPExcel->getActiveSheet();//取得总行数
		$highestRow = $objWorksheet->getHighestRow();//取得总列

		$title = $this->ExcelArr();

		$key = $title[$i];
		$num = count($title);
		$newarr = array();		   
			for ($row = 2;$row <= $highestRow;$row++){
				for($i = 0;$i<$num;$i++){
					$arr['uniacid'] = $uniacid;
					$arr[$title[$i]] = $objWorksheet->getCellByColumnAndRow($i, $row)->getValue();
				}
				array_push($newarr,$arr); 	
			}	
			$num = count($newarr);
			$each = 120;     // 数据总数
	 		$step = ceil( $num/$each);  // insert执行总次数
	 		for($j=0;$j<$step;$j++){
	 			$nextNum= $j*$each;
	 			$newarr1 = array_slice($newarr, $nextNum, $each);
				foreach ($newarr1 as $key => $value) {
			 		$res = pdo_insert('hyb_jianzhi_diqu',$value);
		 		}
		 	}
		 	$this->adminMessage("导入成功",$this->createWeburl("shuju",array("op"=>"display")),"success");
		}		
		include $this->template("shuju");
	} 


	
	//消息通知
	public function doWebTongzhi()
	{
		global $_W,$_GPC;
		$uniacid = $_W['uniacid'];
		load()->func("tpl");
		$op = !empty($_GPC['op'])?$_GPC['op']:"display";
		$item = pdo_fetch("SELECT * FROM ".tablename("hyb_jianzhi_tongzhi")." where uniacid=:uniacid",array(":uniacid"=>$uniacid));
		if (checksubmit("submit")) {			
			$data = array("uniacid"=>$uniacid,"accessKeyId"=>$_GPC['accessKeyId'],"accessKeySecret"=>$_GPC['accessKeySecret'],"signName"=>$_GPC['signName'],"telphone"=>$_GPC['telphone'],"TemplateCode_order"=>$_GPC['TemplateCode_order']);
			if (empty($item)) {
				pdo_insert("hyb_jianzhi_tongzhi",$data);
				message("添加成功!",$this->createWebUrl("tongzhi",array("op"=>"display")),"success");
			}else{
				pdo_update("hyb_jianzhi_tongzhi",$data,array("id"=>$item['id']));
				message("修改成功!",$this->createWebUrl("tongzhi",array("op"=>"display")),"success");
			}
		}
		include $this->template("tongzhi");
	}
}